/*
 * @Author: mhb
 * @Date: 2021-11-23 11:08:06
 * @LastEditTime: 2022-05-18 10:16:23
 * @LastEditors: liyuxiao 1273661256@qq.com
 * @Description: 科技模块路由
 * @FilePath: \cscec-pms-admin-3\src\config\routers\science.js
 */
import { RouteView } from '@/layouts'

export default {
    path: '/science/employer',
    component: RouteView,
    name: 'Science',
    meta: {
        title: '科技',
        icon: 'user'
    },
    redirect: '/science/list',
    children: [
        {
            path: '/science/manage',
            component: RouteView,
            redirect: '/science/list',
            meta: {
                title: '科技人员管理',
                hideHeader: true
            },
            children: [
                {
                    path: '/science/employer/detail',
                    meta: {
                        title: '科技管理人员详情'
                    },
                    component: () => import('@/views/science/employer/detail'),
                    icon: 'none',
                    hidden: 'true'
                },
                {
                    path: '/science/list',
                    component: () => import('@/views/science/employer'),
                    meta: {
                        title: '科技人员库管理',
                        hidden: true
                    }
                },
                {
                    path: '/science/outemployer',
                    component: () => import('@/views/science/outemployer'),
                    meta: {
                        title: '外部科技人员库管理',
                        hidden: true
                    }
                }
            ]
        },
        {
            path: '/sciencePlots',
            component: RouteView,
            redirect: '/science/plots',
            meta: {
                title: '科技管理策划与计划',
                hideHeader: true
            },
            children: [
                {
                    path: '/science/plots',
                    component: () => import('@/views/science/plots'),
                    meta: {
                        title: '科技管理策划',
                        hidden: true
                    }
                },
                {
                    path: '/science/plan/details',
                    meta: {
                        title: '计划详情',
                        noTab: true
                    },
                    component: () => import('@/views/science/plan/detail'),
                    icon: 'none',
                    hidden: 'true'
                },
                {
                    path: '/science/plots/addPlan',
                    name: '/science/plots/addPlan',
                    meta: {
                        title: '新增计划',
                        noTab: true
                    },
                    component: () => import('@/views/science/plan/addPlan'),
                    icon: 'none',
                    hidden: 'true'
                },
                {
                    path: '/science/plots/addPlots',
                    name: '/science/plots/addPlots',
                    meta: {
                        title: '科技管理策划新增',
                        noTab: true
                    },
                    component: () => import('@/views/science/plots/detail'),
                    icon: 'none',
                    hidden: 'true'
                },
                {
                    path: '/science/plan',
                    component: () => import('@/views/science/plan'),
                    meta: {
                        title: '科技管理计划',
                        hidden: true
                    }
                }
                // {
                //   path: '/science/expert',
                //   name: 'science',
                //   component: () => import('@/views/science/expert'),
                //   meta: { title: '科技专家委员会管理', hidden: true }
                // }
            ]
        },
        {
            path: '/science/achievements-extend',
            name: 'ScienceAchievementsExtend',
            component: RouteView,
            meta: {
                title: '科技成果推广',
                hideHeader: true,
                permission: ['form', 'table']
            },
            redirect: '/science/technology-application',
            hideChildrenInMenu: true,
            children: [
                {
                    path: '/science/technology-application',
                    name: 'TechnologyApplication',
                    component: () => import('@/views/science/achievementsExtend/technologyApplication'),
                    meta: {
                        title: '新技术应用情况',
                        hidden: true,
                        permission: ['form', 'table']
                    }
                }
            ]
        },
        {
            path: '/science/activityManage',
            name: 'ScienceActivityManage',
            component: RouteView,
            meta: {
                title: '科技活动管理',
                hideHeader: true,
                permission: ['form', 'table']
            },
            redirect: '/science/activity',
            hideChildrenInMenu: true,
            children: [
                {
                    path: '/science/activity',
                    name: 'ScienceActivity',
                    component: () => import('@/views/science/activityManage/activity'),
                    meta: {
                        title: '科技活动',
                        hidden: true,
                        permission: ['form', 'table']
                    }
                },
                {
                    path: '/science/activity/edit',
                    name: 'ScienceActivityEdit',
                    component: () => import('@/views/science/activityManage/activity/edit.vue'),
                    meta: {
                        title: '新增科技活动',
                        noTab: true
                    }
                }
            ]
        },
        {
            path: '/science/quantitativeManage',
            name: 'ScienceQuantitativeManage',
            component: RouteView,
            meta: {
                title: '科技量化责任书管理',
                hideHeader: true,
                permission: ['form', 'table']
            },
            redirect: '/science/quantitative',
            hideChildrenInMenu: true,
            children: [
                {
                    path: '/science/quantitative',
                    name: 'ScienceQuantitative',
                    component: () => import('@/views/science/quantitativeManage/quantitative'),
                    meta: {
                        title: '科技量化责任书',
                        hidden: true,
                        permission: ['form', 'table']
                    }
                },
                {
                    path: '/science/quantitative/edit',
                    name: 'ScienceQuantitativeEdit',
                    component: () => import('@/views/science/quantitativeManage/quantitative/edit.vue'),
                    meta: {
                        title: '新增科技量化责任书',
                        noTab: true
                    }
                }
            ]
        },
        {
            path: '/science/achievementsTypeAndLevel',
            component: RouteView,
            meta: {
                title: '科技基础信息',
                hideHeader: true,
                permission: ['form', 'table']
            },
            redirect: '/science/achievementsType',
            hideChildrenInMenu: true,
            children: [
                {
                    path: '/science/achievementsType',
                    name: 'achievementsType',
                    component: () => import('@/views/science/achievementsType'),
                    meta: {
                        title: '成果分类与等级',
                        hidden: true,
                        permission: ['form', 'table']
                    }
                },
                {
                    path: '/science/technology-template',
                    name: 'TechnologyTemplate',
                    component: () => import('@/views/science/achievementsExtend/technologyTemplate'),
                    meta: {
                        title: '新技术推广应用清单',
                        hidden: true,
                        permission: ['form', 'table']
                    }
                },
                {
                    path: '/science/achievementsExtend/quantitativeResponsibilityLetter',
                    name: 'quantitativeResponsibilityLetter',
                    component: () => import('@/views/science/achievementsExtend/quantitativeResponsibilityLetter'),
                    meta: {
                        title: '量化责任书',
                        hidden: true,
                        permission: ['form', 'table']
                    }
                }
            ]
        },
        {
            path: '/science/achievements-manage',
            name: 'ScienceAchievementsManage',
            component: RouteView,
            meta: {
                title: '科技成果管理',
                hideHeader: true,
                permission: ['form', 'table']
            },
            redirect: '/science/manag-list',
            hideChildrenInMenu: true,
            children: [
                {
                    path: '/science/manag-list',
                    name: 'ManagList',
                    component: () => import('@/views/science/achievementsManage'),
                    meta: {
                        title: '科技成果录入',
                        hidden: true,
                        permission: ['form', 'table']
                    }
                },
                {
                    path: '/science/account',
                    name: 'scienceAccount',
                    component: () => import('@/views/science/achievementsManage/account'),
                    meta: {
                        title: '科技成果台账',
                        hidden: true,
                        permission: ['form', 'table']
                    }
                },
                {
                    path: '/science/accountDetails',
                    name: 'ScienceAccountDetails',
                    component: () => import('@/views/science/achievementsManage/accountDetails.vue'),
                    meta: {
                        title: '科技台账详情',
                        hideHeader: true,
                        permission: ['form', 'table'],
                        noTab: true
                    },
                    hideChildrenInMenu: true
                },
                {
                    path: '/science/case',
                    name: 'scienceCase',
                    component: () => import('@/views/science/achievementsManage/case'),
                    meta: {
                        title: '科技成果案例',
                        hidden: true,
                        permission: ['form', 'table']
                    }
                },
                {
                    path: '/science/achievements-manage/addpost',
                    name: 'ScienceAchievementsManagePost',
                    component: () => import('@/views/science/achievementsManage/addPost.vue'),
                    meta: {
                        title: '科技成果计划外申报',
                        hideHeader: true,
                        permission: ['form', 'table'],
                        noTab: true
                    },
                    hideChildrenInMenu: true
                },
                {
                    path: '/science/achievements-manage/insideDeclaration',
                    name: 'ScienceAchievementsManageinsideDeclaration',
                    component: () => import('@/views/science/achievementsManage/insideDeclaration.vue'),
                    meta: {
                        title: '科技成果申报',
                        hideHeader: true,
                        permission: ['form', 'table'],
                        noTab: true
                    },
                    hideChildrenInMenu: true
                },
                {
                    path: '/science/achievements-manage/details',
                    name: 'ScienceAchievementsManageDetails',
                    component: () => import('@/views/science/achievementsManage/details.vue'),
                    meta: {
                        title: '科技成果详情',
                        hideHeader: true,
                        permission: ['form', 'table'],
                        noTab: true
                    },
                    hideChildrenInMenu: true
                },
                {
                    path: '/science/achievements-manage/complete',
                    name: 'ScienceAchievementsManageComplete',
                    component: () => import('@/views/science/achievementsManage/complete.vue'),
                    meta: {
                        title: '科技成果完成',
                        hideHeader: true,
                        permission: ['form', 'table'],
                        noTab: true
                    },
                    hideChildrenInMenu: true
                },
                {
                    path: '/science/achievements-manage/supplement',
                    name: 'ScienceAchievementsManageSupplement',
                    component: () => import('@/views/science/achievementsManage/supplement.vue'),
                    meta: {
                        title: '科技成果补充',
                        hideHeader: true,
                        permission: ['form', 'table'],
                        noTab: true
                    },
                    hideChildrenInMenu: true
                }
            ]
        }
    ]
}


